package com.hdoit.ares.web.acc.modelconfig;

import com.tennetcn.common.enums.regular.MathRegularExpressions;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      caochengmeng
 * @email       
 * @createtime  2017年12月05日 14:30:14
 * @comment
 */
public class GoldenBeanInfoConfig extends ModelMetadataAttributeConfiguration{
    public GoldenBeanInfoConfig(){
        this.setProperty("customerId")
            .hasAttribute(new DisplayNameAttribute("客户号Id"));

        this.setProperty("serviceAward")
            .hasAttribute(new DisplayNameAttribute("服务奖"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.decimalTwo));

        this.setProperty("hatcheryAward")
            .hasAttribute(new DisplayNameAttribute("孵化奖"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.decimalTwo));

        this.setProperty("promotionAward")
            .hasAttribute(new DisplayNameAttribute("推广奖"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.decimalTwo));

        this.setProperty("firstSharingAward")
            .hasAttribute(new DisplayNameAttribute("一级分享奖"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.decimalTwo));

        this.setProperty("secondSharingAward")
            .hasAttribute(new DisplayNameAttribute("二级分享奖"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.decimalTwo));
        
        this.setProperty("account")
        	.hasAttribute(new DisplayNameAttribute("会员编号"));
        
        this.setProperty("accountNo")
        	.hasAttribute(new DisplayNameAttribute("账户号"));

        this.setProperty("name")
        	.hasAttribute(new DisplayNameAttribute("会员昵称"));

        this.setProperty("sumMoney")
        	.hasAttribute(new DisplayNameAttribute("总奖金"))
        	.hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.decimalTwo));

    }
}